<ui:composition xmlns="http://www.w3.org/1999/xhtml"
				xmlns:h="http://java.sun.com/jsf/html"
				xmlns:f="http://java.sun.com/jsf/core"
				xmlns:ui="http://java.sun.com/jsf/facelets"
				xmlns:p="http://primefaces.org/ui"
				template="/WEB-INF/templates/baseLayout.xhtml">
	<ui:define name="title">
		#{resourceBundle['login.title']}
	</ui:define>
	<ui:define name="leftContent"/>
	<ui:define name="pageContent">
	<div style="height: 128px"></div>
	<p:panel style="margin-left: 25%; margin-right:25%">
		<form name="f"
			action="#{request.contextPath}/basic/security/j_spring_security_check"
			method="post">
			<p>
				<p:messages autoUpdate="true"/>
				<h:messages/>
				<h:panelGroup
					rendered="${not empty param.login_error}">

					<span class="rf-msg "> <span class="rf-msg-err"> <span
							class="rf-msg-det">#{resourceBundle['login.invalidLogin']}</span>
					</span> </span>
				</h:panelGroup>
				<br />
				<h:outputText value="#{msg['login.username']}:" />
				<br /> <input type="text" name="j_username"
					value="#{externalContext.sessionMap['SPRING_SECURITY_LAST_USERNAME']}" />
			</p>
			<p>
				<h:outputText value="#{msg['login.password']}:" />
				<br /> <input type="password" name="j_password" />
			</p>
			<p>
				<input name="submit" type="submit"
					value="${msg['login.login']}" />
			</p>
		</form>
	</p:panel>
	</ui:define>
</ui:composition>